package com.easy.base.config.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 可跨域访问的目的站点
 */
@Component
@ConfigurationProperties(prefix = "cors")
public class Cors {
    /** origins declared via wildcard patterns */
    private String[] allowOriginPatterns;

    /** origins */
    private String[] allowedOrigins;

    public String[] getAllowOriginPatterns() {
        return allowOriginPatterns;
    }

    public void setAllowOriginPatterns(String[] allowOriginPatterns) {
        this.allowOriginPatterns = allowOriginPatterns;
    }

    public String[] getAllowedOrigins() {
        return allowedOrigins;
    }

    public void setAllowedOrigins(String[] allowedOrigins) {
        this.allowedOrigins = allowedOrigins;
    }
}
